//导出所有中间件
const fs = require('fs')
let io = {}
const file = fs.readdirSync(__dirname)
    file.forEach(name => {
        if (name !== 'index.js') {
            io[name.replace('.js','')] = require(`./${name}`)
        }
})
    
module.exports = io